package cn.com.wantools.service.provider;

import cn.com.wantools.model.unitconvert.UcConvertTable;
import cn.com.wantools.model.unitconvert.UcConvertType;
import cn.com.wantools.model.unitconvert.UcUnitType;
import cn.com.wantools.service.UcUnitTypeService;
import io.jboot.aop.annotation.Bean;
import io.jboot.db.model.Columns;
import io.jboot.service.JbootServiceBase;

import java.util.List;

@Bean
public class UcUnitTypeServiceProvider extends JbootServiceBase<UcUnitType> implements UcUnitTypeService {
    @Override
    public List<UcUnitType> queryUnitTypeByConvertType(String convertType) {
        return findListByColumns(Columns.create("convert_type", convertType), "orders asc");
    }
}
